package com.example.medicalapp.model;

public class Appointment {
    private int id;
    private int patientId;
    private int deptId;
    private String patientName;
    private String idCard;
    private String appointTime;
    private String status; // pending, completed, cancelled

    public Appointment() {}

    public Appointment(int patientId, int deptId, String patientName, String idCard, String appointTime) {
        this.patientId = patientId;
        this.deptId = deptId;
        this.patientName = patientName;
        this.idCard = idCard;
        this.appointTime = appointTime;
        this.status = "pending";
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPatientId() {
        return patientId;
    }

    public void setPatientId(int patientId) {
        this.patientId = patientId;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getAppointTime() {
        return appointTime;
    }

    public void setAppointTime(String appointTime) {
        this.appointTime = appointTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}

